package com.wenwen.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wenwen.entity.Demo;
import com.wenwen.mapper.DemoMapper;
import org.springframework.stereotype.Service;

@Service
public class DemoService {
    private final DemoMapper demoMapper;

    public DemoService(DemoMapper demoMapper) {
        this.demoMapper = demoMapper;
    }

    public Page<Demo> page(Page<Demo> page, QueryWrapper<Demo> queryWrapper) {
        return demoMapper.selectPage(page, null);
    }
}
